<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/html5shiv.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/js/action.js"></script>

    <title>奖品详情</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 抽奖管理 <span class="c-gray en">&gt;</span> 奖品详情
</nav>
<div class="page-container">
    <br>
    <form action="{:U('awardDetail')}" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<?php echo $info['id']; ?>">
        <div style="border-bottom:1px solid #b9c9d6;">
            <ul style="margin-top:15px;  padding-bottom:5px; width:500px; float:left;">
                <li style="padding-top:5px;">
                    <div>中奖用户：<?php echo $info['name']; ?></div>
                    <div>名&nbsp;&nbsp;&nbsp;&nbsp;称：<?php echo $info['title']; ?></div>
                    <div>奖&nbsp;&nbsp;&nbsp;&nbsp;品:&nbsp;&nbsp;&nbsp;<font color="red"><?php echo $info['desc'];?></font></div>
                    <div>类&nbsp;&nbsp;&nbsp;&nbsp;型:&nbsp;&nbsp;&nbsp;<font color="red"><?php echo $info['type']==0 ? '物品' :'积分';?></font></div>
                    <div>收货人:&nbsp;&nbsp;&nbsp;<?php echo $info['receiver'];?></div>
                    <div>收货电话:&nbsp;&nbsp;&nbsp;<?php echo $info['tel'];?></div>
                    <div>收货地址:&nbsp;&nbsp;&nbsp;<?php echo $info['address_xq'];?></div>
                    <div>状&nbsp;&nbsp;&nbsp;&nbsp;态:&nbsp;&nbsp;&nbsp;<font color="red"><?php echo $info['status']==1 ? '已兑换' :'尚未兑换';?></font></div>
                    <?php if($info['type']==0 && $info['status']==1){?>
                    <div>
                        发货快递：<select name="kuaidi_name" id="kuaidi_name">
                        <option value="0">请选择</option>
                        <!-- <volist name="wuliu" id="vo" key="key">
                             <option value="{$vo.code}">{$vo.name}</option>
                         </volist>-->
                        <?php foreach ($wuliu as $key => $val) { ?>
                        <option value="<?php echo $key; ?>" <?php if($info['post']==$key) { ?>selected="selected"<?php } ?> ><?php echo $val; ?></option>
                        <?php } ?>
                    </select>
                    </div>
                    <div> 快递单号：<input name="kuaidi_num" id="kuaidi_num" value="<?php echo $info['kuaidi_num'];?>"/> <a
                            href="{:U('Order/checkWuliu',array('nu'=>$info['kuaidi_num'],'code'=>$info['post']))}">查看物流</a></div>
                    <input type="submit" value="提交" style=""  class="btn btn-success"/>
                    <?php } ?>
                </li>
            </ul>
        </div>
    </form>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/laypage/1.2/laypage.js"></script>


<script>
    //删除订单
    /*function order_show_updata(id,type){
     if(id=='' || id==null)return;
     var $val='';
     if(type!='del'){
     $val=document.getElementById('pro_beizhu_'+id).value;
     }

     $.post('include/order_beizhu.php',{"id":id,"beizhu":$val,"type":type},function(data){
     if(data=='1'){
     alert('操作成功！');
     if(type=='del'){window.close(); window.opener.history.go(0);}
     }else{
     alert("操作失败");
     }
     });
     }*/

    //保存快递名称，快递单号
    function sms_message(){
        try{
            //if(!confirm('确定发送订单发货短信吗？')) return;
            //获取订单当前状态
            var o_status = $('#o_status').val();
            //获取订单选择状态
            var order_status = $('#zt_order_update').val();
            //选择状态不能比当前状态小，已付款的订单不能变成未付款
            //if (order_status && order_status!=40 && order_status<o_status) {return;};
            //获取快递名称
            var kuaidi_name = $('#kuaidi_name').val();
            if(kuaidi_name.length<1 && order_status==30) throw ('快递名称不能为空！');
            //获取快递单号
            var kuaidi_num = $('#kuaidi_num').val();
            if(kuaidi_num.length<1 && order_status==30) throw ('运单号不能为空！');

            if (!order_status && kuaidi_num.length<1 && kuaidi_name.length<1) {
                throw ('请输入快递信息或选择订单状态！');
            };

            $.ajax({
                type: "POST",
                url: "{:U('sms_up')}",
                data:{'order_status':order_status,'kuaidi_name':kuaidi_name,'kuaidi_num':kuaidi_num,'oid':<?php echo $order_info['id'];?>},
            dataType: "json",
                success: function (data) {
                if(data.returns){
                    alert('提交成功！');
                    window.reload();
                }else{
                    alert(data.message);
                }

            },
            error: function (msg) {
                alert ('网络连接失败！');
            }
        });

        }catch(e){
            alert(e);
        }
    }
</script>

</body>
</html>
